<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  created() {
    let loginInfo = sessionStorage.getItem('loginInfo')
    if (loginInfo) {
      loginInfo = JSON.parse(loginInfo)
      this.$store.commit('login/CACHE_LOGIN_INFO', loginInfo)
    }
    /* if (menus) {
      menus = JSON.parse(menus)
      this.$router.addRoutes(menus)
      // this.$router不是响应式的，所以手动将路由元注入路由对象
      this.$router.options.routes.push(menus)
    }*/
  },
  methods: {
  }
}
</script>

<style lang="scss" >

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  //滚动条的滑块
  ::-webkit-scrollbar-thumb {
    /*background-color: #99FFFF;*/
    border-radius: 3px;
  }

  .el-form-item--medium .el-form-item__content {
    line-height: 40px!important;
  }

  .el-form-item--medium .el-form-item__label {
    line-height: 40px!important;
  }

  .el-table__body tr.current-row>td{
    background-color: #99FFFF !important;
    /*background-color: #54FF9F !important;*/
  }
  .el-form-item--medium .el-form-item__label {
    width: 120px;
  }
  .el-textarea__inner{
    height: 36px;
  }
  .no-warn-item{
    width:30%
  }
  .el-input-number--medium {
    width: 100%!important;
  }
  .el-input--medium .el-input__inner {
    height: 36px;
    line-height: 40px!important;
  }
  .el-input-number.is-controls-right .el-input__inner {
    text-align: left;
  }
  .filter-container .el-form-item--medium .el-form-item__content {
    width: 60%!important;
  }
  .filter-container{
    .no-warn-item.el-form-item {
      width: 30%;
    }
    .submit-area {
      text-align: left!important;
    }
    .el-form-item--medium .el-form-item__content {
      width: 43%;
    }
  }
  .sidebar-logo-container {
    display: none;
  }
  //修改表头和表体错位的问题
  body .el-table th.gutter{
    display: table-cell!important;
  }
  .el-transfer-panel {
    width: 250px!important;
  }
  #app .sidebar-container{
    width: 215px !important;
  }
  .el-menu-item {
    padding-left: 50px!important;
  }
</style>

